<?php
class TT_Controller extends MX_Controller {
	// dynamic main menu
	// create a module to create this menu 
	protected $main_menu;
	
	public function __construct() {
		parent::__construct();
		$this->main_menu = Modules::run('menu/menu/create_main_menu');
		$this->template->set_layout('front/car');
		$this->template->enable_parser(FALSE);
		$this->template->set_partial('head', 'layouts/front/partials/head', FALSE);
		$this->template->set_partial('bodyheader', 'layouts/front/partials/bodyheader',
			array('main_menu' => $this->main_menu));
		$this->template->set_partial('bodyfooter', 'layouts/front/partials/bodyfooter', FALSE);
	}
}
?>